package com.basics.user.service;

import com.basics.user.entity.CyUser;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author WangWei
 * @since 2025-03-09
 */
public interface CyUserService extends IService<CyUser> {

    /**
     * 根据unionId查询用户
     * @param unionId
     * @return
     */
    CyUser getByUnionId(String unionId);

    /**
     * 根据openId查询用户
     * @param openId
     * @return
     */
    CyUser getByOpenId(String openId);

    /**
     * 根据公众号openId查询用户
     * @param publicOpenId
     * @return
     */
    CyUser getByPublicOpenId(String publicOpenId);

    /**
     * 根据手机号查询用户
     * @param phone
     * @return
     */
    CyUser getByPhone(String phone);
}
